package base.day16.polymorpic;

public class TestPolymotpic2 {
    public static void main(String[] args) {
        Fu f=new Zi();
        f.a=10;

        f.method();
    }
}
class Fu{
    int a=10;
    public void method(){
        System.out.println("fu........");
    }
}
class Zi extends Fu{
    int a=20;
    public void method(){
        System.out.println("zi..............");
    }
}